package com.cch.cooperation.api.support.controller;

import com.cch.cooperation.api.support.dto.VersionDTO;
import com.cch.cooperation.common.web.response.Response;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@Api(tags = "App信息接口")
@RestController
@RequestMapping("/api/support/app/info")
public class AppInfoController {

    @ApiOperation(value = "获取当前app最新版本号")
    @GetMapping("/getLatestVersion")
    public Response<VersionDTO> getLatestVersion() {
        return Response.success(new VersionDTO(
                "1.2.5",
                2,
                false,
                "https://apps.apple.com/app/id6745318453",
                "1、新增待办事项小组件。\n" +
                        "2、新增星球空间，菜单配置。\n" +
                        "3、修复bug若干。"));
    }

}
